//
//  TPQHistoryCell.m
//  TrafficPeccancyQuery
//
//  Created by Vitas on 2018/7/5.
//  Copyright © 2018年 Bylongma. All rights reserved.
//

#import "MNDTPQHistoryCell.h"

@implementation MNDTPQHistoryCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setHistoryModel:(MNDTPQHistoryModel *)historyModel {
    _historyModel = historyModel;
    self.carNoLabel.text = historyModel.breakRuleCarno;
    self.addressLabel.text = historyModel.breakRuleCityname;
    self.timeLabel.text = [NSString stringWithFormat:@"查询时间：%@",historyModel.updateTime];
    self.statusLabel.text = historyModel.breakRuleTips.integerValue == 1 ? @"违章提醒已开启" : @"违章提醒未开启";
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
